package com.turing.system.controller;


import com.turing.system.feign.AuthService;
import com.turing.system.service.CustomerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import result.Result;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author 26401
 */
@RestController
public class WithdrawalCusTakeInCroller {

    @Resource private AuthService authService;

    /**
     * •	50706客户已提现金额(手机)
     */
    @Resource
    private CustomerService customerService;
    @GetMapping("withdrawal/getCusTakeIn")
    public Result getCusTakeIn(HttpServletRequest request){
        //获取token
        String token1 = request.getHeader("Authorization");

        System.out.println("token = " + token1);
        return  customerService.getCusTakeIn(token1);
    }
}
